# -*- coding: utf-8 -*-
class InventoryHx < ActiveRecord::Base
  has_many :inventory_hx_details ,:dependent => :destroy  #级联删除子表

  belongs_to :inventory
  belongs_to :employee
  belongs_to :vendor

  belongs_to :warehouse
  belongs_to :department
  belongs_to :company
  belongs_to :auditor, :class_name => 'Employee', :foreign_key => 'auditor_id'
end
